package com.ymatou.query.seller.trading.api.testcase;

import java.util.ArrayList;
import java.util.HashMap;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.query.seller.trading.api.service.GetSellerOrderListCall_seller;
import com.ymatou.query.trading.api.parameter.GetSellerOrderListBean;
import com.ymatou.query.trading.api.service.GetSellerOrderListCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymttest.common.entitie.OrderInfoForQuery;
import com.ymttest.common.enums.OrderDateEnum;
import com.ymttest.database.model.YmtOrderExt;
import com.ymttest.database.sqlwapper.YmtOrdersWapper;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.YMTDateUtil;
import com.ymttest.utils.constant.ECode;

/**
 * 查询卖家订单信息 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_GetSellerOrderList {

	private static GetSellerOrderListBean getsellerorderlistbean;
	private static GetSellerOrderListCall_seller getsellerorderlistcall_seller;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("查询卖家订单信息");
	}

	@Before
	public void caseUp() {

		getsellerorderlistbean = new GetSellerOrderListBean();
		getsellerorderlistcall_seller = new GetSellerOrderListCall_seller();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(getsellerorderlistcall_seller.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_001() {
		Logger.start(true,"查询M2C卖家所有状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-1);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			//OrderStatusList.add(1);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(100);// 页面数据条数
			//getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSearchKeyWord("接口自动化测试Test");// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");	
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_002() {
		Logger.start(true,"查询M2C卖家待付款状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(1);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");									
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_003() {
		Logger.start(true,"查询M2C卖家待接单状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(2);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_004() {
		Logger.start(true,"查询M2C卖家待发货状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(true);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(17);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");									
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_005() {
		Logger.start(true,"查询M2C卖家已发货状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(3);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_006() {
		Logger.start(true,"查询M2C卖家已收货状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			// 是否闪购订单 无用
			//getsellerorderlistbean.setIsShangouOrder(true);
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(4);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(0);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_007() {
		Logger.start(true,"查询C2C卖家所有状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("BuyerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			//getsellerorderlistbean.setIsShangouOrder(true);// 是否闪购订单
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表 
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			//OrderStatusList.add(1);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型列表 // 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(1);
			OrderTypeList.add(2);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_008() {
		Logger.start(true,"查询C2C卖家待补款状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("BuyerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			//getsellerorderlistbean.setIsShangouOrder(true);// 是否闪购订单
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表 
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(16);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型列表 // 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(1);
			OrderTypeList.add(2);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_009() {
		Logger.start(true,"查询C2C卖家待发起补款状态订单信息成功");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("BuyerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-2);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(false);// 是否全额付款
			//getsellerorderlistbean.setIsShangouOrder(true);// 是否闪购订单
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.CreateDate);// 订单日期
			// 订单状态列表 
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(17);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型列表 // 订单类型  区分 1，2 为扫货，0 M 商品
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			OrderTypeList.add(1);
			OrderTypeList.add(2);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			getsellerorderlistbean.setSearchKeyWord(null);// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);		
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_010() {
		Logger.start(true,"查询6个月前的记录");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("BuyerId"));
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-184);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			getsellerorderlistbean.setIsPaidInFull(null);// 是否全额付款
			getsellerorderlistbean.setIsShangouOrder(true);// 是否闪购订单
			// 物流类型
			ArrayList<Integer> LogisticsTypeList = new ArrayList<Integer>();
			getsellerorderlistbean.setLogisticsTypeList(LogisticsTypeList);
			getsellerorderlistbean.setOrderDateEnum(OrderDateEnum.Unknown);// 订单日期
			// 订单状态列表
			ArrayList<Integer> OrderStatusList = new ArrayList<Integer>();
			OrderStatusList.add(1);
			OrderStatusList.add(2);
			OrderStatusList.add(3);
			OrderStatusList.add(4);
			OrderStatusList.add(16);
			OrderStatusList.add(17);
			getsellerorderlistbean.setOrderStatusList(OrderStatusList);
			// 订单类型列表
			ArrayList<Integer> OrderTypeList = new ArrayList<Integer>();
			//0 M2C 1C2C
			OrderTypeList.add(1);
			OrderTypeList.add(2);
			getsellerorderlistbean.setOrderTypeList(OrderTypeList);
			// 订单状态对应的超时时间
			HashMap<Integer, String> map = new HashMap<Integer, String>();
			getsellerorderlistbean.setOverTimeLimitDic(map);
			getsellerorderlistbean.setPageSize(10);// 页面数据条数
			//getsellerorderlistbean.setSearchKeyWord("自动化");// 查询关键词
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistbean.setSalesRefundOrderOnly(false);
			getsellerorderlistbean.setPackageDeliveryDomesticStatusFilter(null);
			
			// seller 后台发送请求
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");
			//验证seller 后台跟user后台 同样请求返回数据一致		
			Logger.verifyEquals(getsellerorderlistcall.getData().getInt("AllRecordCount"),getsellerorderlistcall_seller.getData().getInt("AllRecordCount"), "验证seller 后台跟user后台 同样请求返回数据一致");				
					
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetSellerOrderList_011() {
		Logger.start(true,"查询订单信息成功包含bIsNeedUploadIdCard & bHaveUploadedIdCard信息");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			YmtOrderExt orderext = new YmtOrdersWapper().selectOneYmtOrderExt(SellerId);
			// 参数
			String BeginTime = YMTDateUtil.getBeforeOrNextDay(-10);
			getsellerorderlistbean.setBeginTime(BeginTime);
			getsellerorderlistbean.setCurrentPageNum(1);
			String EndTime = YMTDateUtil.getBeforeOrNextDay(1);
			getsellerorderlistbean.setEndTime(EndTime);
			// 物流类型
			getsellerorderlistbean.setPageSize(100);// 页面数据条数
			getsellerorderlistbean.setSellerId(SellerId);
			//	 仅查询退货退款的订单
			getsellerorderlistcall_seller.setData(getsellerorderlistbean);
			getsellerorderlistcall_seller.callService();
			Logger.comment("getsellerorderlistcall_seller send:" + getsellerorderlistcall_seller.getEntityString());
			Logger.comment("getsellerorderlistcall_seller response:" + getsellerorderlistcall_seller.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall_seller.getCode(), "验证Code");
			//seller 后台接口返回数据
			ArrayList<OrderInfoForQuery> sellerOrders=getsellerorderlistcall_seller.getOrderInfoList();
			// Logger.verifyEquals(ErrorCode.SUCCESSMSG,
			// user 发送请求
			GetSellerOrderListCall getsellerorderlistcall = new GetSellerOrderListCall();	
			getsellerorderlistcall.setData(getsellerorderlistbean);
			getsellerorderlistcall.callService();
			Logger.comment("getsellerorderlistcall send:" + getsellerorderlistcall.getEntityString());
			Logger.comment("getsellerorderlistcall response:" + getsellerorderlistcall.getReturnData());
			Logger.verifyEquals(ECode.SUCCESS, getsellerorderlistcall.getCode(), "验证Code");	
			 ArrayList<OrderInfoForQuery> list = getsellerorderlistcall.getOrderInfoList();
			 for (OrderInfoForQuery orderInfoForQuery : list) {
				if(orderInfoForQuery.OrderId==orderext.getiOrderId()){
					Logger.debug(FormatUtil.beanToGSONString("======="+orderInfoForQuery));
					//TODO 添加 bIsNeedUploadIdCard & bHaveUploadedIdCard
//					Logger.verifyEquals(orderext.getbHaveUploadedIdCard(), orderInfoForQuery., "验证haveUploadedIdCard");
//					Logger.verifyEquals(orderext.getbIsNeedUploadIdCard(), needUploadIdCard, "验证needUploadIdCard");
				}
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}